package lab01;

/**
 * Created by leovo on 2017/10/17.
 */

    public class Test13 {
        public static void main(String[] args) {
            int unit,
             decade,
         hundreds;

            for(int i = 100 ;i <= 1000;i++){
                hundreds = i/100;
                decade = i%100/10;
                unit = i%10;

                if(hundreds*hundreds*hundreds+
                        decade*decade*decade+unit*unit*unit
                        == i){
                    System.out.println(i);
                }
            }
        }
    }


